str = "select * from yuangongxinxi where 部门="Text1.Text"and 性别='女'
来源:百度知道 编辑:UC知道 时间:2024/06/17 04:05:18
为什么不可以
str = "select * from yuangongxinxi where 部门="Text1.Text"and 性别='女'
str = "select * from yuangongxinxi where 部门="Text1.Text"and 性别='女'
什么语言啊?
VB里应该是这样的吧
str = "select * from yuangongxinxi where 部门='" & Text1.Text & "' and 性别='女' "
这个问题在各种变成语言都存在 主要就是字符 " ' 的使用
比如vb字符串 用"" 括起来表示 sql ‘’表示
他们 之间用&连接起来
str1="select * from yuangongxinxi where 部门='"&Text1.Text &"' and 性别='女'
注意vb里不可以使用str 做变量名
那是保留字
vb:
str = "select * from yuangongxinxi where 部门=" & Text1.Text &"and 性别='女'
str = "select * from yuangongxinxi where 部门="Text1.Text"and 性别='女' "
str = "select * from yuangongxinxi where 部门="Text1.Text"and 性别='女'
str = "select 刷卡时间 from 职工考勤信息表 where 职工编号 = '" _
"str="ab" len(str)to1 step -1"是什么意思?
str=str & i * j & " " 中" " 是代表什么???
str=str & i * j & " " 这句话里的" " 代表什么??
char *str[]={"....是干什么的?
char str[ ]="#";sizeof(str)为什么是2不是1啊?
设staic char str[]="abc\0def";则strlen(str)=?
vfp中?"i="+str(i,2)是什么意思
关于String str=new String("123");